<template>
  <div class="header-img">
    <video autoplay loop muted>
      <source :src="videoUrl" type="video/mp4">
      您的浏览器不支持 video 标签。
    </video>
    <div class="header-search">
      <!--<div class="header-search-img">-->
      <!--  <img src="../assets/img/logo-search.png" alt="">-->
      <!--</div>-->
      <div class="header-title">
        <div class="header-title-content">影视文化产业大脑</div>
        <div class="header-sub-h1">FILM&TELEVISON</div>
        <div class="header-sub-h2">INDUSTRIAL ACCLOMFRALLON</div>
      </div>
      <div class="header-search-box">
        <a-input ref="userNameInput" placeholder="输入关键字搜索" :bordered="false" allowClear>
          <template #prefix>
            <search-outlined type="user"/>
          </template>
        </a-input>
        <!--<input type="text" class="header-search-input" placeholder="输入关键字搜索">-->
        <!--<div></div>-->
        <div class="header-search-btn"></div>
      </div>
    </div>
  </div>
</template>

<script>
import {SearchOutlined} from '@ant-design/icons-vue';

export default {
  name: "Search",
  components: {
    SearchOutlined,
  },
  setup() {
    let videoUrl = require('../assets/img/ban.mp4')
    return {videoUrl}
  }
}
</script>

<style scoped lang="less">
.header-img {
  width: 100%;
  //height: 320px;
  position: relative;
  margin-bottom: -5px;

  video {
    width: 100%;
  }

  .header-search {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -450px;
    margin-top: -90px;
    width: 900px;
    text-align: center;

    .header-search-img {
      margin-bottom: 20px;
    }

    .header-title {
      margin-bottom: 24px;
      letter-spacing: 2px;
      background: linear-gradient(59deg, #D8AE81 0%, #FBEAC7 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;

      .header-title-content {
        font-size: 40px;
        font-family: YouSheBiaoTiHei;
        color: #FFFFFF;
        line-height: 52px;
      }

      .header-sub-h1 {
        line-height: 16px;
        font-size: 14px;
      }

      .header-sub-h2 {
        font-size: 12px;
        zoom: 0.5;
      }
    }

    .header-search-box {
      display: flex;
      align-items: center;
      justify-content: center;

      :deep(.ant-input-affix-wrapper) {
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.3);

        .ant-input-prefix {
        }

        .anticon {
          padding-left: 20px;
          font-size: 26px;
          color: #B0B5B8;
        }

        .ant-input {
          height: 52px;
          padding: 0 10px;
          //background: rgba(255,255,255,0.3);
          font-size: 22px;
          color: #B0B5B8;
        }
      }

      .header-search-input {
        width: 600px;
        height: 56px;
        padding: 0 40px;
        border-radius: 8px;
        font-size: 24px;
        letter-spacing: 1.44px;
        text-align: left;
        font-weight: 400;
        color: #B0B5B8;
        background: rgba(255, 255, 255, 0.3);

        &::placeholder {
          color: #B0B5B8;
        }
      }

      .header-search-btn {
        margin-left: 20px;
        width: 110px;
        height: 56px;
        background: url("../assets/img/search-but.png") no-repeat center / 100% 100%;
        cursor: pointer;
      }
    }
  }
}
</style>
